home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-24 | 2.2 KB | 104 lines | [TEXT/MPS ] |
- ;
- ; File: Timer.a
- ;
- ; Contains: Time Manager interfaces.
- ;
- ; Version: Technology: System 7.5
- ; Package: Universal Interfaces 2.2 in “MPW” on ETO #20
- ;
- ; Copyright: © 1984-1995 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- ; stack. Include the file and version information (from above)
- ; in the problem description and send to:
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__TIMER__') = 'UNDEFINED' THEN
- __TIMER__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
- include 'OSUtils.a'
- ENDIF
- ; include 'MixedMode.a' ;
- ; include 'Memory.a' ;
-
- ; high bit of qType is set if task is active
- kTMTaskActive EQU (1 << 15)
-
- ; typedef struct TMTask TMTask, *TMTaskPtr
- TMTask RECORD 0
- qLink ds.l 1 ; offset: $0 (0)
- qType ds.w 1 ; offset: $4 (4)
- tmAddr ds.l 1 ; offset: $6 (6)
- tmCount ds.l 1 ; offset: $A (10)
- tmWakeUp ds.l 1 ; offset: $E (14)
- tmReserved ds.l 1 ; offset: $12 (18)
- sizeof EQU * ; size: $16 (22)
- ENDR
-
- ;
- ; pascal void InsTime(QElemPtr tmTaskPtr)
- ;
- IF ¬ GENERATINGCFM THEN
- ; parameters:
- ; tmTaskPtr => A0
- _InsTime: OPWORD $A058
- ELSE
- IMPORT_CFM_FUNCTION InsTime
- ENDIF
-
- ;
- ; pascal void InsXTime(QElemPtr tmTaskPtr)
- ;
- IF ¬ GENERATINGCFM THEN
- ; parameters:
- ; tmTaskPtr => A0
- _InsXTime: OPWORD $A458
- ELSE
- IMPORT_CFM_FUNCTION InsXTime
- ENDIF
-
- ;
- ; pascal void PrimeTime(QElemPtr tmTaskPtr, long count)
- ;
- IF ¬ GENERATINGCFM THEN
- ; parameters:
- ; tmTaskPtr => A0
- ; count => D0
- _PrimeTime: OPWORD $A05A
- ELSE
- IMPORT_CFM_FUNCTION PrimeTime
- ENDIF
-
- ;
- ; pascal void RmvTime(QElemPtr tmTaskPtr)
- ;
- IF ¬ GENERATINGCFM THEN
- ; parameters:
- ; tmTaskPtr => A0
- _RmvTime: OPWORD $A059
- ELSE
- IMPORT_CFM_FUNCTION RmvTime
- ENDIF
-
- ;
- ; pascal void Microseconds(UnsignedWide *microTickCount)
- ;
- IF ¬ GENERATINGCFM THEN
- _Microseconds: OPWORD $A193
- ELSE
- IMPORT_CFM_FUNCTION Microseconds
- ENDIF
-
- ENDIF ; __TIMER__
-